package com.zte.market.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zte.market.model.MarketOrderCondition;
import com.zte.market.model.MarketOrderdetails;
import com.zte.market.model.MarketOrders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository

public interface MarketOrdersDao extends BaseMapper<MarketOrders> {
    //查询订单列表
    List<MarketOrders> queryOrdersByCondition(MarketOrderCondition condition);
    //查询订单详情数据
    MarketOrders queryOrderById(@Param("orderId") String orderId);
    //插入订单数据
    int addOrder(MarketOrders orders);
    //更新数据
    int updateOrder(MarketOrders orders);
}
